package com.bbcare.oms.plat.store.ibatis;

import com.bbcare.oms.plat.entity.AccountApplication;
import java.util.List;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@CacheNamespace(readWrite=true)
public abstract interface IAccountApplicationDAO
{
  @Select({"select * from au_account_application where id=#{id}"})
  @Results({@org.apache.ibatis.annotations.Result(property="tenant.id", column="tenant_id"), @org.apache.ibatis.annotations.Result(property="account.id", column="account_id"), @org.apache.ibatis.annotations.Result(property="app.id", column="app_id"), @org.apache.ibatis.annotations.Result(property="role.id", column="role_id"), @org.apache.ibatis.annotations.Result(property="accountType", column="account_type"), @org.apache.ibatis.annotations.Result(property="accountRelationId", column="account_relation_id")})
  public abstract AccountApplication select(String paramString)
    throws Exception;
  
  @Select({"select * from au_account_application where account_id=#{accountId}"})
  @Results({@org.apache.ibatis.annotations.Result(property="tenant.id", column="tenant_id"), @org.apache.ibatis.annotations.Result(property="account.id", column="account_id"), @org.apache.ibatis.annotations.Result(property="app.id", column="app_id"), @org.apache.ibatis.annotations.Result(property="role.id", column="role_id"), @org.apache.ibatis.annotations.Result(property="accountType", column="account_type"), @org.apache.ibatis.annotations.Result(property="accountRelationId", column="account_relation_id")})
  public abstract List<AccountApplication> queryByAccountId(String paramString)
    throws Exception;
  
  @Update({"update au_account_application set status=#{status}", "where id=#{id}"})
  public abstract void updateStatus(@Param("id") String paramString, @Param("status") int paramInt)
    throws Exception;
}


/* Location:              C:\Users\ZCL\Desktop\oms\oms\oms\WEB-INF\classes\com.zip!\com\bbcare\oms\plat\store\ibatis\IAccountApplicationDAO.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */